home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 November
/
MACPOWER-1997-11.ISO.7z
/
MACPOWER-1997-11.ISO
/
AMUG
/
MUSIC
/
bol-processor-271-data.sit
/
bol-processor-271-data
/
BP2 examples
/
BP2 data
/
-gr.gramgene2
< prev
next >
Wrap
Text File
|
1995-06-05
|
560b
|
22 lines
V.2.5
Date: Lun 5 Juin 1995 -- 19:00
-se.gramgene
-ho.gramgene
// This "metagrammar" produces a grammar represented as a binary tree
INIT: Clear window "Data"
RND
GRAM#1[1] S --> '-ho.abc'; 'RND'; 'S' '-->' Inc Var Inc Var; '--------------------' ;
GRAM#1[2] <6-1> '-->' ?1 ?2 ; --> '-->' ?1 ?2 ; ?1 '-->' Arg2 ; ?2 '-->' Arg2 ; [not more than 6 times...]
GRAM#1[3] Arg2 --> Inc Var Inc Var
GRAM#1[4] Arg2 --> Const
GRAM#1[5] Inc Var --> (= Inc Var) (:Inc Var)
GRAM#1[6] Inc Var --> X
GRAM#1[7] Inc Var --> Y
GRAM#1[8] Inc Var --> Z
GRAM#1[9] Const --> a